import Vue from 'vue';
import App from './App';
import uView from "uview-ui";
Vue.use(uView);
import {backToIndex,classNameUrl} from "./common/utils/index.js";

Vue.prototype.$backToIndex = backToIndex;
Vue.prototype.$classNameUrl = classNameUrl;
// 引入封装请求
import httpRequest from './common/utils/request.js';
import api from "./common/utils/api.js";
Vue.config.productionTip = false;
Vue.prototype.$http = httpRequest;
Vue.prototype.$api = api;
//引入vuex
import store from './store';
//把vuex定义成全局组件
Vue.prototype.$store = store;
App.mpType = 'app';

const app = new Vue({
    ...App
})
app.$mount();
